package com.gitee.qdbp.base.shiro.validate;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import com.gitee.qdbp.able.exception.ServiceException;

/**
 * 参数验证接口
 *
 * @author zhaohuihua
 * @version 150920
 */
public interface IParamValidator {

    /**
     * 参数验证
     *
     * @param request ServletRequest
     * @param response ServletResponse
     * @return true or false, 如果返回true, 继续执行其他验证, 否则不再执行其他验证
     * @throws ServiceException 验证不通过
     */
    boolean doValidate(ServletRequest request, ServletResponse response) throws ServiceException;
}
